//
//  OrgModel.swift
//  Employee
//
//  Created by tancheng on 2018/7/3.
//  Copyright © 2018年 remotevillage. All rights reserved.
//

import Foundation
import SwiftyJSON

struct OrgModel: ModelProtocol {
    
    let communityName: String
    
    let companyId: String
    
    let companyName: String
    
    init(json: JSON) {
        communityName = json["communityName"].stringValue
        companyId = json["companyId"].stringValue
        companyName = json["companyName"].stringValue
    }
    
    static func array(from jsonArray: [JSON]) -> [OrgModel] {
        return jsonArray.map({OrgModel.init(json: $0)})
    }
    

}
